package com.flx.at.spring.code.apps.circle;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Fenglixiong
 * @Date: 2021/9/13 15:50
 * @Description:
 */
@Slf4j
@Service
public class InstanceB implements InitializingBean {

    @Autowired
    private InstanceA instanceA;

    public InstanceB(){
        log.info("InstanceB construct...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("InstanceB afterPropertiesSet...");
    }

    public void init(){
        log.info("InstanceB init...");
    }

}
